package com.study.designpartten.strategy;

public class CommonUtil {

    public static void DoSomeSthing(Strategy strategy){

        System.out.println("start-----");
        strategy.run();
        System.out.println("end-----");

    }

    public static void main(String[] args) {
        CommonUtil.DoSomeSthing(new Strategy() {
            @Override
            public void run() {
                System.out.println("doing----");
            }
        });
    }


}
